PARSER=parser
DEBUG=debug
SERVER=server
cc=g++
.PHONY:all

all:$(PARSER) $(DEBUG) $(SERVER)

$(PARSER):parser.cc
	$(cc) -o $@ $^ -std=c++11 -lboost_system -lboost_filesystem
	
$(DEBUG):debug.cc
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp

$(SERVER):http_server.cc
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp -lpthread

.PHONY:clean
clean:
	rm -f $(PARSER) $(DEBUG) $(SERVER)
